package com.example.gmallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.example.gmallproduct.VO.web.Catalog2Vo;
import com.example.gmallproduct.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author WDL
 * @email 2329156214@QQ.com
 * @date 2022-05-01 14:45:09
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listToTree();

    void removeByLogic(List<Long> asList);

    void updateCaseCade(CategoryEntity categoryEntity);

    /**
     * 查询所有一级分类
     *
     * @return
     */
    List<CategoryEntity> listAllRoot();

    Map<String, List<Catalog2Vo>> getCatalogJson();
}

